<?php $this->pageTitle = cr("PaidListingConfig.currency_symbol").$listingPlan['ListingPlan']['plan_info']['Plan']['price'].' - '.$listingPlan['ListingPlan']['plan_name']?>
<?php
	$html->css("/paid_listings/css/style.css",array(),null,false);
?>
<strong><?php echo __("Please select a payment method")?></strong>
<?php echo $form->create("ListingPlan",array("url"=>"/".$this->params['url']['url'])) ?>
<div class="plan_info">
<?php 
	foreach(cri("PaidListings.PaymentHandler")->getPaymentHandlers() as $handlerName => $handlerObject)
	{
		if($handlerObject->isEnabled() == false || ($listingPlan['ListingPlan']['plan_info']['Plan']['payment_type']) == Plan::PAYMENT_SUBSCRIPTION && $handlerObject->useForSubscription() == false)
		{
			continue;
		}
		$paymentId = $handlerName."_id";
	?>
	<div>
	<input id="<?php echo $paymentId?>" type="radio" name="data[ListingPlan][payment_gateway]"  value="<?php echo $handlerName?>"/>
	<label for"<?php echo $paymentId?>">
	<?php
		$img = $handlerObject->getFieldValue("image_name");
		echo $html->image('/paid_listings/img/'.$img,array("alt"=>$handlerObject->getFieldValue("title")));
	?></label>
	</div>		
<?php	}
?>
</div>

<?php echo $form->end(__("Procced"));?>
